package com.zhehekeji.opsys.api.webservice.server;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;

import org.apache.cxf.rs.security.cors.CrossOriginResourceSharing;

import com.zhehekeji.opsys.api.resp.WhitelistVerifyResp;

/**
 * @ClassName WhitelistManager
 * @Description TODO
 * @author chenweiliu chenwei.liu@163.com
 * @date 2017-10-16   上午10:06:35
 */
@Path(value="/")
@WebService
@CrossOriginResourceSharing(allowAllOrigins=true)
public interface WhitelistManager {
	
	@GET
	@Path(value="verify")
	@Produces(value=MediaType.APPLICATION_JSON )
	@WebMethod(action="doVerify",operationName="verify")
	WhitelistVerifyResp verify(@WebParam(name="whitelistCode")@QueryParam(value="whitelistCode")String whitelistCode, 
			@WebParam(name="userID")@QueryParam(value="userID")String userID);
}

